﻿using System.Linq.PageList;
using Dyao.Book.Contract;
using Dyao.Book.Entity;
using Dyao.Book.Repository.Abstractions;

namespace Dyao.Repository.Abstractions
{
    /// <summary>
    /// 任务中心配置
    /// </summary>
    public interface ITaskCenterSettingsRepository : IDataRepository<TaskCenterSettingsEntity, string>
    {
        /// <summary>
        /// 分页获取任务中心配置信息
        /// </summary>
        /// <param name="pageFilter">分页筛选器</param>
        /// <param name="cancellationToken">取消操作的通知</param>
        /// <returns>返回任务中心配置</returns>
        Task<IPageList<TaskCenterSettingsEntity>> GetPageListAsync(IPageFilter<TaskCenterSettingFilterDto> pageFilter, CancellationToken cancellationToken = default);
    }
}
